package com.habo.service.impl;

import com.habo.dao.WeiBoMapper;
import com.habo.entity.WeiBo;
import com.habo.service.PagerUtilService;
import com.habo.util.PagerUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/4/6 0006.
 */
@Service
public class PagerUtilServiceImpl implements PagerUtilService {
    @Resource
    private WeiBoMapper weiBoMapper;
    public PagerUtil<WeiBo> findAllWeiBo(int pageNum, int pageSize) {
        List<WeiBo> weiBoList= weiBoMapper.findAllWeiBo();
        PagerUtil<WeiBo> result = new PagerUtil(pageNum, pageSize, weiBoList);
        return result;
    }
}
